import request from '@/utils/request'

// export const login = (form) => {
//     return request.post('/auth/login', {
//         username: form.username
//         password: form.password
//     })
// }
// 或者：
export const login = ({ username, password }) => {
    return request.post('/auth/login', {
        username,
        password
    })
}

export const getUser = () => {
    return request.get('/auth/currentUser')
}